package com.suning.app.snpaasadmin.pojo;

import java.io.Serializable;

public class AppTemplate implements Serializable {
    private Integer id;

    private String temName;

    private Integer sdkId;

    private Integer runtimeId;

    private String domain;

    private Integer memory;

    private Integer disk;

    private Integer instance;

    private String temImg;

    private Integer temType;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTemName() {
        return temName;
    }

    public void setTemName(String temName) {
        this.temName = temName == null ? null : temName.trim();
    }

    public Integer getSdkId() {
        return sdkId;
    }

    public void setSdkId(Integer sdkId) {
        this.sdkId = sdkId;
    }

    public Integer getRuntimeId() {
        return runtimeId;
    }

    public void setRuntimeId(Integer runtimeId) {
        this.runtimeId = runtimeId;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain == null ? null : domain.trim();
    }

    public Integer getMemory() {
        return memory;
    }

    public void setMemory(Integer memory) {
        this.memory = memory;
    }

    public Integer getDisk() {
        return disk;
    }

    public void setDisk(Integer disk) {
        this.disk = disk;
    }

    public Integer getInstance() {
        return instance;
    }

    public void setInstance(Integer instance) {
        this.instance = instance;
    }

    public String getTemImg() {
        return temImg;
    }

    public void setTemImg(String temImg) {
        this.temImg = temImg == null ? null : temImg.trim();
    }

    public Integer getTemType() {
        return temType;
    }

    public void setTemType(Integer temType) {
        this.temType = temType;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AppTemplate other = (AppTemplate) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTemName() == null ? other.getTemName() == null : this.getTemName().equals(other.getTemName()))
            && (this.getSdkId() == null ? other.getSdkId() == null : this.getSdkId().equals(other.getSdkId()))
            && (this.getRuntimeId() == null ? other.getRuntimeId() == null : this.getRuntimeId().equals(other.getRuntimeId()))
            && (this.getDomain() == null ? other.getDomain() == null : this.getDomain().equals(other.getDomain()))
            && (this.getMemory() == null ? other.getMemory() == null : this.getMemory().equals(other.getMemory()))
            && (this.getDisk() == null ? other.getDisk() == null : this.getDisk().equals(other.getDisk()))
            && (this.getInstance() == null ? other.getInstance() == null : this.getInstance().equals(other.getInstance()))
            && (this.getTemImg() == null ? other.getTemImg() == null : this.getTemImg().equals(other.getTemImg()))
            && (this.getTemType() == null ? other.getTemType() == null : this.getTemType().equals(other.getTemType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTemName() == null) ? 0 : getTemName().hashCode());
        result = prime * result + ((getSdkId() == null) ? 0 : getSdkId().hashCode());
        result = prime * result + ((getRuntimeId() == null) ? 0 : getRuntimeId().hashCode());
        result = prime * result + ((getDomain() == null) ? 0 : getDomain().hashCode());
        result = prime * result + ((getMemory() == null) ? 0 : getMemory().hashCode());
        result = prime * result + ((getDisk() == null) ? 0 : getDisk().hashCode());
        result = prime * result + ((getInstance() == null) ? 0 : getInstance().hashCode());
        result = prime * result + ((getTemImg() == null) ? 0 : getTemImg().hashCode());
        result = prime * result + ((getTemType() == null) ? 0 : getTemType().hashCode());
        return result;
    }
}